package util;

import javax.faces.application.FacesMessage;
import javax.faces.context.FacesContext;


public class Helper {
	
	public static void alertaError(String componente,String titulo,String menssage) {
		FacesContext facesContext = FacesContext.getCurrentInstance();
		facesContext.addMessage(componente, new FacesMessage(FacesMessage.SEVERITY_ERROR,titulo, menssage));
		
	}
	
	public static void alertaInfo(String componente,String titulo,String menssage) {
		FacesContext facesContext = FacesContext.getCurrentInstance();
		facesContext.addMessage(componente, new FacesMessage(FacesMessage.SEVERITY_INFO,titulo, menssage));
		
	}
}
